<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .big{
            width: 100%;
            height: 300px;
            overflow: hidden;
        }
        .box{
            width: 150px;
            height: 150px;
            background-color: pink;
            margin: 50px;
            float: left;
            text-align: center;
            line-height: 150px;
            transition: .3s;
        }
        .rot:hover{
            transform: rotate(50deg);
        }
        .slate:hover{
            transform: translateY(150px);
        }
        .scale:hover{
            transform: scale(1.5);
        }
        .skew:hover{
            transform: skew(-30deg);
        }
        .tt{
            width: 150px;
            height: 150px;
            border: 1px solid red;
            transition: all 2s;
            background-color: #aa8383;
            float: left;
            margin: 50px;
        }
        .aa:hover{
            transform: rotateX(180deg);
        }
        .bb:hover{
            transform: rotatey(180deg);
        }
        .cc:hover{
            transform: rotatez(180deg);
        }
    </style>
</head>
<body>
    <h1>2D</h1>
    <div class="big">
        <div class="box rot">旋转</div>
        <div class="box slate">移动</div>
        <div class="box scale">缩放</div>
        <div class="box skew">倾斜</div>
    </div>
    <h1>3D</h1>
    <div class="tt aa"></div><br>
    <div class="tt bb"></div><br>
    <div class="tt cc"></div>
</body>
</html>